{% include 'include/golf_head.html' %}
<!-- Page Container START -->
            <div class="page-container">
                <!-- Content Wrapper START -->
                <div class="main-content">
                    <div class="page-header">
                        <h2 class="header-title">会员明细</h2>
                    </div>
                    <div class="card">
                        <div class="card-body">
                            <h4>会员消费明细</h4>
                            <div class="m-t-25">
                                <table id="data-table" class="table">
                                    <thead>
                                        <tr>
                                            <th>消费时间</th>
                                            <th>消费场地</th>
                                            <th>消费金额</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {% for item in sales %}
                                        <tr>
                                            <td>{{ item.starttime }} -- {{ item.endtime }}</td>
                                            <td>{{ item.yard.name }}</td>
                                            <td>{{ item.price }}</td>
                                        </tr>
                                        {% endfor %}
                                    </tbody>
                                    <tfoot>
                                        <tr>
                                            <th>消费时间</th>
                                            <th>消费场地</th>
                                            <th>消费金额</th>
                                        </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-body">
                            <h4>会员充值明细</h4>
                            <div class="m-t-25">
                                <table id="data-table" class="table">
                                    <thead>
                                        <tr>
                                            <th>充值时间</th>
                                            <th>余额</th>
                                            <th>充值金额</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {% for item in balance %}
                                        <tr>
                                            <td>{{ item.data }}</td>
                                            <td>{{ item.balance}}</td>
                                            <td>{{ item.newbalance }}</td>
                                        </tr>
                                        {% endfor %}
                                    </tbody>
                                    <tfoot>
                                        <tr>
                                            <th>充值时间</th>
                                            <th>余额</th>
                                            <th>充值金额</th>
                                        </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Content Wrapper END -->

                <!-- Footer START -->
                <footer class="footer">
                    <div class="footer-content">
                        <p class="m-b-0">Copyright © 2019 Theme_Nate. All rights reserved.</p>
                        <span>
                            <a href="" class="text-gray m-r-15">Term &amp; Conditions</a>
                            <a href="" class="text-gray">Privacy &amp; Policy</a>
                        </span>
                    </div>
                </footer>
                <!-- Footer END -->

            </div>
            <!-- Page Container END -->

        </div>
    </div>


    <!-- Core Vendors JS -->
    <script src="/static/assets/js/vendors.min.js"></script>

    <!-- page js -->
    <script src="/static/assets/vendors/datatables/jquery.dataTables.min.js"></script>
    <script src="/static/assets/vendors/datatables/dataTables.bootstrap.min.js"></script>
    <script src="/static/assets/js/pages/datatables.js"></script>

    <!-- Core JS -->
    <script src="/static/assets/js/app.min.js"></script>

</body>

</html>